    <?php
require_once('controller/auth.php');
//Start session
@session_start();
//THis Comment is
//Include database connection details
require_once('controller/inc/config.inc');

//Array to store validation errors
$errmsg_arr = array();

//Validation error flag
$errflag = false;

//Connect to mysql server
$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
if(!$link) {
	die('Failed to connect to server: ' . mysql_error());
}

//Select database
$db = mysql_select_db(DB_DATABASE);
if(!$db) {
	die("Unable to select database");
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
<title>Project Tracking MIS</title>

<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="https://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
<![endif]-->
<!-- Le styles -->
<link rel="stylesheet" href="assets/css/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="assets/css/bootstrap-responsive.css"
	type="text/css" />
<link rel="stylesheet" href="assets/css/font-awesome.css"
	type="text/css" />
<script type="text/javascript" src="assets/js/jquery.min.js"></script>

<script type="text/javascript" src="assets/js/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/js/bootstrap-popover.js"></script>
<script type="text/javascript" src="assets/js/bootstrap-tooltip.js"></script>
<!-- Ali sajjad Modifications may 18th Begins-->
<script type="text/javascript" src="assets/js/highcharts.js"></script>

<script src="assets/js/exporting.js"></script>


<!-- Ali sajjad Modifications may 18th Begins-->

<style>
body {
	padding-top: 60px;
	padding-bottom: 40px;
}

.sidebar-nav {
	padding: 9px 0;
}

.dropdown-menu .sub-menu {
	left: 100%;
	position: absolute;
	top: 0;
	visibility: hidden;
	margin-top: -1px;
}

.dropdown-menu li:hover .sub-menu {
	visibility: visible;
	display: block;
}

.navbar .sub-menu:before {
	border-bottom: 7px solid transparent;
	border-left: none;
	border-right: 7px solid rgba(0, 0, 0, 0.2);
	border-top: 7px solid transparent;
	left: -7px;
	top: 10px;
}

.navbar .sub-menu:after {
	border-top: 6px solid transparent;
	border-left: none;
	border-right: 6px solid #fff;
	border-bottom: 6px solid transparent;
	left: 10px;
	top: 11px;
	left: -6px;
}
</style>
<!-- Le fav and touch icons -->

</head>

<body>
<div class="container-fluid"><!--TOp Nav-->
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid"><a data-target=".nav-collapse"
	data-toggle="collapse" class="btn btn-navbar"> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span> </a> <a
	href="#" class="brand">TMIS | Project Tracking</a>
<div class="nav-collapse">
<ul class="nav">
	<li class="active"><a href="dashboard.php">Home Page</a></li>
	<li><a href="create_project.php">Create Project</a></li>
	<li><a href="update_project.php">Update Project</a></li>
	<li><a href="reports.php">Reports</a></li>
	<li><a href="reports2.php">Reports2</a></li>
	





</ul>
<form action="" class="navbar-search pull-left">
<input type="text" placeholder="Search" class="search-query span2">

</form>
<ul class="nav pull-right">


	<div class="pull-right">
	<ul class="nav pull-right">
		<li class="dropdown"><a href="#" class="dropdown-toggle"
			data-toggle="dropdown">Welcome, <?php echo $_SESSION['SESS_FIRST_NAME'] . " " . $_SESSION['SESS_LAST_NAME'];?>
		<b class="caret"></b></a>
		<ul class="dropdown-menu">
			<li><a href="/user/preferences"><i class="icon-cog"></i> Preferences</a></li>
			<li><a href="/help/support"><i class="icon-envelope"></i> Contact
			Support</a></li>
			<li class="divider"></li>
			<li><a href="controller/logout.php"><i class="icon-off"></i> Logout</a></li>
		</ul>
		</li>
	</ul>
	</div>


</ul>
</div>
<!-- /.nav-collapse --></div>
</div>
</div>

<script type='text/javascript' src='ajax/generateRep.js'></script>
    <div class="row text-centered" align="center">
    <div class="span8">
    <form action="billing" method="post" class="form-horizontal" id="billingform" accept-charset="utf-8">
    
    <div class="control-group" align="center"> 
  
    <div class="controls">
      
    Show those Projects that are 
  
    <select name="genRep" id="genRep">
    <option value="x"></option>
    <option value="4">Done</option>
    <option value="3">Allotment Received</option>
    <option value="2">Approved By MoE</option>
    
    <option value="1">Approved By TeD</option>
    
    
    <option value="0">Initiated</option>
    </select>
    </div>
    </div>
    
 
    
    <!-- 
    <div class="form-actions"  >
    <button type="submit" class="btn btn-large btn-primary"></button>
    </div>
    -->
    </form>
       <div id="genRepRes">
    
    </div>
    </div> <!-- .span8 -->
    </div>
    
    
    

<!--/Content--></div>


</div>
<hr />
<footer class="footer"> &copy;2013 TMIS, TED, MoE </footer></div>

</body>

</html>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    